#include<stdio.h>

int main()
{
    int a, b = 6;
    a = b = 66;
    printf("a=%d, b=%d\n", a, b);

    int c, d, e;
    e = (c = 10) + (d = 30);
    printf("c=%d, d=%d, e=%d\n", c, d, e);

    //(a = b) = 666;  编译报错，在C编译器中表达式不能作为左值，所以不能给表达式赋值
    printf("a=%d, b=%d\n", a, b);

    /**
        (a != b ? a : b) = 6666;
        C语言编译器同样不会编译通过，还是因为C编译器中表达式不能作为左值，同样就不能给表达式赋值
    **/
    printf("a=%d, b=%d\n", a, b);

    return 0;
}